﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Photo.Application.System.Authorize.Dto
{
    /// <summary>
    /// 登录input
    /// </summary>
    public class LoginInput
    {
        /// <summary>
        /// 用户名
        /// </summary>
        [Required]
        [MinLength(5, ErrorMessage = "账号长度不能少于5位")]
        [MaxLength(20, ErrorMessage = "账号长度不能超过20位")]
        public string Account { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        [Required]
        [MinLength(5, ErrorMessage = "密码长度最少5位")]
        [MaxLength(20, ErrorMessage = "密码长度不超过20位")]
        public string Password { get; set; }
    }
}
